import { createRouter, createWebHistory  } from 'vue-router'
import Layout from '@/views/layout/index.vue'
import Home from '@/views/home/index.vue'
import Mstsel from '@/views/mstsel/index.vue'
import Mstinfo from '@/views/mstinfo/index.vue'

const router = createRouter({
  history: createWebHistory (import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: Layout,
      children:[
        
        {path: '/',name: 'home',component: Home},
        {path: '/mstsel:id?',name: 'mstsel',component: Mstsel},
        {path: '/mstinfo:id?',name: 'mstinfo',component: Mstinfo}
      ]
    }
  ]
})

export default router
